package com.zoagroup.funzy.entity.pk;

import java.io.Serializable;
import javax.persistence.*;

/**
 * The primary key class for the stage_result database table.
 * 
 */
@Embeddable
public class StageResultPK implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name="id_user")
	private int idUser;

	@Column(name="id_stage")
	private int idStage;

	public StageResultPK() {
	}
	public int getIdUser() {
		return this.idUser;
	}
	public void setIdUser(int idUser) {
		this.idUser = idUser;
	}
	public int getIdStage() {
		return this.idStage;
	}
	public void setIdStage(int idStage) {
		this.idStage = idStage;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + idStage;
		result = prime * result + idUser;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		StageResultPK other = (StageResultPK) obj;
		if (idStage != other.idStage)
			return false;
		if (idUser != other.idUser)
			return false;
		return true;
	}
}